<!DOCTYPE html>
<!--[if IE 8]>
<html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8"/>
    <title>订单管理 - 快递列表</title>
    <?php include($this->c['_homes']['_viewsHome'] . '/_global/_head.php'); ?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'] . '/_global/head.php'); ?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
    <?php include($this->c['_homes']['_viewsHome'] . '/_global/menu.php'); ?>
    <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR -->
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
        <div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
             aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                        <h4 class="modal-title">Modal title</h4>
                    </div>
                    <div class="modal-body">
                        Widget settings form goes here
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn blue submit_btn">确定</button>
                        <button type="button" class="btn default" data-dismiss="modal">取消</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <!-- /.modal -->
        <!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
        <!-- BEGIN PAGE HEADER-->
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title"> 一元拍记录 </h3>
                <ul class="page-breadcrumb breadcrumb">
                    <li><i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i></li>
                    <li> 订单管理 <i class="icon-angle-right"></i></li>
                    <li>一元拍记录</li>
                </ul>
                <!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
     <div class="row">
      <div class="col-md-12">
        <div class="portlet box">
          <div class="booking-search">
            <form action="" role="form" method="get">
              <div class="row form-group">
                <div class="col-md-1">
                  <!-- <input type="button" onclick="javascript:window.location.href='/order/exadd'" class="btn green btn-block" value="添 加"> -->
                </div>
              </div>
              
            </form>
          </div>
        </div>
      </div>
    </div>
        <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <form class="form-horizontal" method="post" action="/setting/save" role="form">
           <input type="hidden" name="act" value="savesetting">
          <div class="tabbable tabbable-custom boxless">
            <ul class="nav nav-tabs">
               <li class="active"><a href="#tab_0" data-toggle="tab">加价记录</a></li> 
               <li class=""><a href="#tab_1" data-toggle="tab">补偿记录</a></li>           
               <li class=""><a href="#tab_2" data-toggle="tab">冻结云米记录</a></li>
            </ul>
            <div class="tab-content"> 
              <!--Tab0-->
              <div class="tab-pane active" id="tab_0">
                
                  <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-list"></i>加价记录(<?= count($this->data['biddata']); ?>)</div>
                        <div class="tools"><a href="javascript:;" class="collapse"></a></div>
                    </div>
                    <div class="portlet-body">
                        <div class="table-scrollable">
                            <table class="table table-striped table-bordered table-hover dataTable">
                                <thead>
                                <tr>
                                    <th>用户ID</th>
                                    <th>用户名</th>
                                    <th>会员级别</th>
                                    <th>加价时间</th>
                                    <th>跳价额度</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                if ($this->data['biddata']) {
                                    foreach ($this->data['biddata'] as $k => $r) {
                                        ?>
                                        <tr>
                                            <td><?= $r['uid']; ?></td>
                                            <td><?= $r['mobile']; ?></td>
                                            <td><?= $this->c['member'][$r['member_level']]; ?></td>
                                            <td><?= date('Y-m-d H:i:s',$r['create_time']); ?></td>
                                             <td><?= $r['bid_price']; ?></td>
                                            <!-- <td> <a href="/order/exedit?id=<?=$r['id']?>" class="btn btn-xs blue"><i class="icon-edit"></i> 编辑</a></td> -->
                                        </tr>
                                        <?
                                    }
                                }
                                ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
              </div>
              
              <!--Tab1-->
              <div class="tab-pane" id="tab_1">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-list"></i>补偿记录(<?= count($this->data['rebiddata']); ?>)</div>
                        <div class="tools"><a href="javascript:;" class="collapse"></a></div>
                    </div>
                    <div class="portlet-body">
                        <div class="table-scrollable">
                            <table class="table table-striped table-bordered table-hover dataTable">
                                <thead>
                                <tr>
                                    <th>用户ID</th>
                                    <th>用户名</th>
                                    <th>会员级别</th>
                                    <th>补偿时间</th>
                                    <th>补偿额度</th>
                                    <th>补偿类型</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                if ($this->data['rebiddata']) {
                                    foreach ($this->data['rebiddata'] as $k => $r) {
                                        ?>
                                        <tr>
                                            <td><?= $r['uid']; ?></td>
                                            <td><?= $r['mobile']; ?></td>
                                            <td><?= $this->c['member'][$r['member_level']]; ?></td>
                                            <td><?= date('Y-m-d H:i:s',$r['create_time']); ?></td>
                                            <td><?= $r['equalize_price']; ?>元</td>
                                            <td><?= $this->c['stat']['order']['rebid_type'][$r['rebid_type']]; ?></td>
                                            <!-- <td> <a href="/order/exedit?id=<?=$r['id']?>" class="btn btn-xs blue"><i class="icon-edit"></i> 编辑</a></td> -->
                                        </tr>
                                        <?
                                    }
                                }
                                ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
              </div>             
              <!--End Tab--> 

                <!--Tab1-->
              <div class="tab-pane" id="tab_2">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-list"></i>冻结云米记录(<?= count($this->data['freezedata']); ?>)</div>
                        <div class="tools"><a href="javascript:;" class="collapse"></a></div>
                    </div>
                    <div class="portlet-body">
                        <div class="table-scrollable">
                            <table class="table table-striped table-bordered table-hover dataTable">
                                <thead>
                                <tr>
                                    <th>用户ID</th>
                                    <th>用户名</th>
                                    <th>会员级别</th>
                                    <th>冻结时间</th>
                                    <th>冻结云米额度</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                if ($this->data['freezedata']) {
                                    foreach ($this->data['freezedata'] as $k => $r) {
                                        ?>
                                        <tr>
                                            <td><?= $r['uid']; ?></td>
                                            <td><?= $r['mobile']; ?></td>
                                            <td><?= $this->c['member'][$r['member_level']]; ?></td>
                                            <td><?= date('Y-m-d H:i:s',$r['freeze_time']); ?></td>
                                            <td><?= $r['freeze_price']; ?></td>
                                            <!-- <td> <a href="/order/exedit?id=<?=$r['id']?>" class="btn btn-xs blue"><i class="icon-edit"></i> 编辑</a></td> -->
                                        </tr>
                                        <?
                                    }
                                }
                                ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
              </div>             
              <!--End Tab--> 
               
            </div>
          </div>
        </form>
        <!-- END SAMPLE FORM PORTLET--> 
      </div>
    </div>

        
    <!-- END PAGE -->
</div>
<!-- END CONTAINER -->
<!-- END CONTAINER -->
<form method="post" id="_frm" action="/member/savemember">
    <input type="hidden" name="act" value="delete">
    <input type="hidden" name="uid" id="_uid" value="0">
</form>
<?php include($this->c['_homes']['_viewsHome'] . '/_global/_footer.php'); ?>
<script>
    var _submit_action = '', _uid = 0;
    jQuery(document).ready(function () {
        App.init();
        $(".submit_btn").bind("click", function () {
            switch (_submit_action) {
                case "delete":
                    _delete_action();
                    break;
            }
        });
    });

    function _delete_alert(uid) {
        _submit_action = 'delete';
        _uid = uid;
        $("#portlet-config .modal-title").html('删除会员');
        $("#portlet-config .modal-body").html('<p>确定删除此会员吗？</p> <p class="alert alert-danger">警告：删除后不可恢复</p>');
    }

    function _delete_action() {
        $("#_uid").prop("value", _uid);
        $("#_frm").submit();
    }

    //点击会员显示会员收藏

</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>